<!-- 渠道统计 -->
<template>
  <div class="channel_content">
    <div class="top">
      <div>预约渠道数据统计</div>
      <img src="../../images/dataScreen-title.png" alt="" />
    </div>

    <div class="bom">
      <div class="pie_chart" ref="c_p_l"></div>
    </div>
  </div>
</template>

<script setup>
import * as echarts from "echarts";
import { option } from "@/config/echarts/config";
let c_p_l = ref();
onMounted(() => {
  let myCharts = echarts.init(c_p_l.value);
  myCharts.setOption(option);
});
</script>

<style lang="scss" scoped>
.channel_content {
  display: flex;
  flex-direction: column;
  .top {
    margin-left: 14px;
    color: white;
    font-size: 16px;
    img {
      width: 68px;
      height: 7px;
    }
  }
  .bom {
    flex: 1;

    .pie_chart {
      width: 100%;
      height: 100%;
    }
  }
}
</style>
